package com.library.common.net

import com.library.common.BuildConfig
import rxhttp.wrapper.annotation.DefaultDomain

/**
 * 作者　: SimGa
 * 时间　: 2020/11/18
 * 描述　:
 */
object NetUrl {
    @DefaultDomain //设置为默认域名
    @JvmField
    val DEV_URL = if (BuildConfig.isDebug) BuildConfig.API_TEST else BuildConfig.API_RELEASE_DOMAIN

    @JvmField
    val FILE_PROFILE =
        if (BuildConfig.isDebug) BuildConfig.FILE_PROFILE_TEST else BuildConfig.FILE_PROFILE_RELEASE

    //注册
    const val api_register = "user/registerByAndroid"

    //注册，更改手机号码  获取验证码
    const val api_get_phone_code = "user/sendToPhone"

    const val api_get_phone_code_2 = "user/sendToPhoneByLogin"

    //验证旧手机号码，忘记密码，获取验证码
    const val api_reset_get_phone_code = "user/sendByResetPassword"

    //校验手机验证码
    const val api_check_code_phone = "user/validateByPhone"

    //上传图片
    const val api_upload_image = "attachment/upload"

    //获取邮箱验证码
    const val api_get_email_code = "captcha/sendToEmail"

    //校验邮箱验证码正确与否
    const val api_check_email_code = "user/validateByEmail"

    //根据token获取个人信息
    const val api_getinfo_by_token = "user/getMyself"

    //用户签到
    const val api_user_sign = "activityUserRecord/sign"

    //判断用户是否签到
    const val api_user_is_sign = "activityUserRecord/whetherSign"

    //手机密码登录
    const val api_login_by_phone_pwd = "user/authenticateByPhoneByAndroid"

    //手机验证码登录
    const val api_login_by_phone_code = "user/authenticateByPhoneAndCaptchaCodeAndAndroid"

    //手机验证码登录获取验证码
    const val api_login_get_phone_code = "user/sendToPhoneWithLogin"

    //邮箱验证码登录
    const val api_login_by_email_pwd = "user/authenticateByEmailAndAndroid"

    //手机号码修改密码
    const val api_reset_pwd_by_phone = "user/resetPasswordByPhone"

    //邮箱修改密码
    const val api_reset_pwd_by_email = "user/resetPasswordByEmail"

    //修改用户资料
    const val api_reset_user_info = "user/update"

    //商品一级分类
    const val api_shop_first_category = "category/findByParent"

    //商品列表
    const val api_home_shop_goods = "product/find"

    //直播列表
    const val api_home_live_list = "live/findByRegionAndStatusOrderByViewerQuantityDesc"

    //一级分类搜索
    const val api_home_shop_goods_by_first = "product/findByFirstCategory"

    //获取所有品牌
    const val api_all_brand = "brand/findAll"

    //获取全部分离
    const val api_all_cate = "category/findByType"

    //获取商品详情
    const val api_get_goods_details = "product/get"

    //获取所有购物车信息
    const val api_get_cart_all_msg = "item/findInShoppingCart"

    //增加购物车数量
    const val api_add_cart_quantity = "item/increaseQuantity"

    //减少购物车数量
    const val api_reduce_cart_quantity = "item/decreaseQuantity"

    //删除购物车
    const val api_delete_cart = "item/batchDelete"

    //添加入购物车
    const val api_add_to_cart = "item/addToShoppingCart"

    //获取评论列表
    const val api_goods_comment_list = "evaluation/findByProduct"

    //获取收货地址
    const val api_get_address_list = "address/findWithMe"

    //获取收货地址详情
    const val api_get_address_detail = "address/get"

    //删除收货地址
    const val api_delete_address = "address/deleteById"

    //更新收货地址
    const val api_update_address = "address/update"

    //新增收货地址
    const val api_save_address = "address/save"

    //设置默认收货地址
    const val api_set_address_default = "address/enableDefault"

    //获取地址
    const val api_get_region = "region/findChildren"

    //结算
    const val api_calculate = "order/calculate"

    const val api_hot_key = "hotword/search"

    //立即购买
    const val api_buy = "order/buy"

    //开团/参团
    const val api_group_buy = "order/buyByGroup"

    //开团
    const val api_group_buy_creat = "purchasingGroup/create"

    //参团
    const val api_group_buy_join = "purchasingGroup/join"

    //再次购买
    const val api_buy_again = "order/buyAgain"

    //提交订单
    const val api_create_order = "order/create"

    //支付订单
    const val api_order_pay = "order/pay"

    //查询所有订单
    const val api_find_allorder = "order/findByStatusWithMe"

    //取消订单
    const val api_cancel_order = "order/cancel"

    //确认收货
    const val api_sign_order = "order/sign"

    //删除订单
    const val api_delete_order = "order/deleteByIdWithMe"

    //提醒发货
    const val api_remind_send = "order/remind"

    //查看订单详情
    const val api_order_findByIdWithMe = "order/findByIdWithMe"

    //获取店铺详情
    const val api_stroe_detail = "store/get"

    //搜索店铺
    const val api_search_stroe = "store/search"

    //获取店铺分类
    const val api_stroe_category = "category/findByStore"

    //根据位置获取轮播图
    const val api_banner = "slide/findByLocationAndStore"

    //根据店铺商品分类获取商品
    const val api_find_by_store_cate = "product/findByStoreCategory"

    //获取宣传海报
    const val api_find_store_poster = "product/findByStore"

    //获取回放列表
    const val api_find_playback_live = "live/findByStoreAndStatus"

    //获取团购列表
    const val api_find_groupbuy_list = "groupBuying/find"

    //获取团购详情
    const val api_find_groupbuy_detail = "groupBuying/get"

    //获取竞标列表
    const val api_find_bidding_list = "bidding/find"

    //获取竞标详情
    const val api_find_bidding_detail = "bidding/get"

    //领券中心
    const val api_find_coupon_center_list = "coupon/findAll"

    //领取优惠券
    const val api_save_a_coupon = "userCouponRecord/save"

    //获取正在全部正在拼团
    const val api_group_buy_member = "purchasingGroup/findByProduct"

    //我的团购列表
    const val api_group_buy_order_list = "purchasingGroup/findByTypeAndStatusWithMe"

    //限量团参团
    const val api_group_buy_limit_join = "groupBuying/join"

    //查询我的优惠券
    const val api_my_usercoupons_list = "userCouponRecord/findByUserCouponRecordAndUser"

    //出价记录
    const val api_bidding_record_list = "bidRecord/findByBidding"

    //竞标出价
    const val api_auction_bid = "bidRecord/save"

    //竞标大厅
    const val api_auction_hall = "bidding/biddingHall"

    //参与竞标
    const val api_bidding_join = "bidding/join"

    //我的团购--限量团
    const val api_my_group_limit = "userPurchasingGroup/findByStatusWithMe"

    //我的团购--组团购详情
    const val api_my_group__cluster_detail = "purchasingGroup/get"

    //我的团购--限量团详情
    const val api_my_group__limited_detail = "userPurchasingGroup/get"

    //我的竞价列表
    const val api_my_bidding_list = "userBiddingRecord/findByStatusWithMe"

    //评价商品
    const val api_my_save_comment = "evaluation/save"

    //我的打赏币
    const val api_my_coin = "user/getCoinQuantity"

    //打赏币充值列表
    const val api_coin_list = "gold/search"

    //充值打赏币
    const val api_coin_recharge = "gold/Recharge"

    //申请开通店铺
    const val api_apply_open_store = "store/applyFor"

    //申请开通店铺信息
    const val api_apply_open_store_infomation = "store/findByAccount"

    //打赏币记录
    const val api_gold_record = "goldUsedRecord/findWithMe"

    //申请售后
    const val api_apply_after_sale = "issue/save"

    //修改售后
    const val api_apply_after_update = "issue/update"

    //售后订单列表
    const val api_apply_after_sale_list = "issue/findByAccount"

    //售后详情
    const val api_apply_after_sale_detail = "issue/get"

    //我已经寄出
    const val api_goods_have_sent = "issue/send"

    //撤销申请
    const val api_withdraw_the_application = "issue/revoke"

    //收藏
    const val api_collect_good_or_store = "favorites/save"

    //取消收藏
    const val api_cancel_collect_good_or_store = "favorites/deleteProductOrStore"

    //查询所有店铺分类
    const val api_get_all_store_category = "category/findStoreCategory"

    //提醒竞标
    const val api_remind_bidding = "bidding/remind"

    //取消提醒
    const val api_remind_bidding_cancel = "bidding/disRemind"

    //获取我的评价列表
    const val api_get_my_comment_list = "evaluation/findWithMe"

    //我的评价详情
    const val api_get_my_comment_detail = "evaluation/get"

    //获取所有物流公司
    const val api_get_all_wuliu_company = "courier/findAll"

    //获取文章
    const val api_get_agreement_detail = "page/get"

    //获取帮助中心列表
    const val api_help_center_list = "page/findByType"

    //意见反馈
    const val api_feel_back = "feedback/save"

    //获取平台电话
    const val api_service_phone = "parameters/getPhone"

    //关注店铺/达人
    const val api_follow_store = "attention/save"

    //取消关注店铺
    const val api_delete_follow_store = "attention/deleteByStoreWithMe"

    //取消关注达人
    const val api_delete_follow_executor = "attention/deleteByExecutorWithMe"

    //查询我的余额
    const val api_query_my_wallet = "user/getBalanceAmount"

    //查询我的银行卡
    const val api_query_all_bank_card = "bankCard/findWithMe"

    //删除评论
    const val api_delete_evaluation = "evaluation/deleteById"

    //修改手机号码
    const val api_reset_phone = "user/resetPhone"

    //我的关注
    const val api_my_follow = "attention/findByTypeWithMe"

    //我的收藏
    const val api_my_collect = "favorites/findByTypeWithMe"

    //批量取消收藏
    const val api_delete_collect_more = "favorites/batchDelete"

    //获取我的足迹
    const val api_get_foot_print_list = "footprint/findWithMe"

    //删除我的足迹
    const val api_delete_foot_print = "footprint/deleteById"

    //获取详情里的相似与推荐
    const val api_goods_recommend_and_similer = "product/findByProductDetail"

    //达人入驻
    const val api_apply_talent = "executor/save"

    //获取达人入驻信息
    const val api_get_apply_talent_userinfo = "executor/getWithMe"

    //获取领域标签
    const val api_get_field_lable_list = "label/findByTypeIsField"

    //任务池查询
    const val api_task_find_list = "task/find"

    //任务池详情
    const val api_task_details = "task/getByUser"

    //任务报名
    const val api_task_sign = "task/sign"

    //任务管理列表
    const val api_task_manager = "executorTaskRecord/find"

    //任务管理详情
    const val api_task_manage_detail = "executorTaskRecord/get"

    //取消报名
    const val api_cancel_apply_task = "task/disSign"

    //同意或者拒绝邀请
    const val api_refuse_or_pass_task = "executorTaskRecord/pass"

    //通告列表
    const val api_notice_list = "agreement/findByStatusWithMe"

    //通告详情
    const val api_notice_detail = "agreement/get"

    //提交审核/申请审核
    const val api_apply_auth = "agreement/submit"

    //确认收货
    const val api_comfirm_receiver = "agreement/receive"

    //账单
    const val api_bill_list = "flow/search"

    //提现利率
    const val api_withdraw_rates = "parameters/getWithdrawalRate"

    //新增银行卡
    const val api_add_new_bank_card = "bankCard/save"

    //提现
    const val api_withdraw_amount = "withdrawal/save"

    //订单结算获取可用优惠券
    const val api_get_comfir_order_user_coupons = "userCouponRecord/choose"

    //更新达人专区信息
    const val api_update_talen_user_info = "executor/update"

    //获取钱包余额和提现手续费
    const val api_get_talent_wallet_info = "executor/getBalanceAmountAndWithdrawalRate"

    //提现
    const val api_talent_with_draw = "withdrawal/saveByExecutor"

    //获取达人专区所有银行卡
    const val api_find_talent_all_bank_card = "bankCard/findWithMeByExecutor"

    //达人专区添加银行卡
    const val api_talent_add_new_bank_card = "bankCard/saveByExecutor"

    //达人专区账单
    const val api_talent_with_draw_bill = "flow/findByExecutor"

    //获取金币余额
    const val api_get_gold_amount = "executor/getGoldQuantity"

    //兑换金币
    const val api_rewardrecord = "rewardRecord/exchangeByExecutor"

    //兑换记录
    const val api_record = "rewardRecord/findByTypeWithExecutor"

    //回放列表
    const val api_live_playback_list = "live/findByExecutorAndStatus"

    //修改案例
    const val api_update_case = "experience/update"

    //新增案例
    const val api_add_new_case = "experience/save"

    //删除案例
    const val api_delete_case = "experience/deleteById"

    //协商历史
    const val api_xieshang_lishi = "issueRecord/findByIssue"

    //查询结算可用的优惠券
    const val api_submint_order_can_user_coupon = "userCouponRecord/choose"

    //订单选择优惠券后计算价格
    const val api_calculate_amount = "order/calculation"

    //收支记录详情
    const val api_flow_get = "flow/get"

    //是否展示在首页
    const val api_live_updateShow = "live/updateShow"

    //删除直播
    const val api_live_delete = "live/deleteById"

    //活动奖励
    const val api_activity_list = "activityUserRecord/find"

    //签到记录
    const val api_sign_record = "activityUserRecord/signRecordWithMe"

    //加入直播间
    const val api_join_live_room = "live/joinLive"

    //退出直播间
    const val api_exit_live_room = "live/splitLive"

    //直播间点赞
    const val api_live_praise = "live/praise"

    //直播间送礼物
    const val api_live_send_gift = "live/gift"

    //直播间礼物列表
    const val api_live_gift_list = "gift/find"

    //直播间商品
    const val api_live_product = "live/getProduct"

    //获取观看人数
    const val api_live_view_quantity = "live/getViewQuantity"

    //达人直播选择通告
    const val api_live_choose_notice = "agreement/findByLiveIsNull"

    //开启直播
    const val api_start_live = "live/saveByExecutor"

    //获取直播详情
    const val api_get_live_details = "live/get"

    //直播间商品开售
    const val api_live_open_sell = "productLiveRecord/updateSellable"

    //举报主播
    const val api_live_report_author = "report/save"

    //订单数量
    const val api_order_count = "order/countWithMe"
}